package com.spzx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.api.domain.Product;
import com.spzx.product.api.domain.VO.ItemVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ProductService extends IService<Product> {
    List<Product> listByCondition(Product product);

    Boolean insertProduct(Product product);

    Product getDetails(Long id);

    boolean updateDetails(Product product);

    boolean deleteByIds(Long[] ids);

    boolean updateStatus(Long id, Short status);
    boolean updateAuditStatus(Long id, Short auditStatus);

    ItemVO itemById(Long id);

}
